<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<link href="css/nowAttendance.css" rel="stylesheet" type="text/css" />
	</head>
	<body>
		<jsp:include page="head.jsp"></jsp:include>


		<div class="content">
			<h1>
				即时考勤信息
			</h1>
			<div id=nowAttendance align="center">
				<ul>
					<s:iterator value="studentList">

						<s:if test="%{getIn()}">

							<li class="in">
								<a
									href="viewAttendanceDetail.action?studentId=<s:property value='studentId'/>&courseId=${request.courseId}">
									<s:property value="name" /> </a>
							</li>
						</s:if>
						<s:else>
						
							<li class="notIn">
							
								<a
									href="viewAttendanceDetail.action?studentId=<s:property value='studentId'/>&courseId=<s:property value='courseId'/>">
									<s:property value="name" /> </a>
							</li>
						</s:else>
					</s:iterator>
				</ul>
			</div>
		</div>
	</body>
</html>